﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace ThinhTien.Models
{
    public class SlideViewModel : BaseViewModel
    {
        public System.Guid ID { get; set; }

        [Display(Name = "Title:")]
        [Required(ErrorMessage = "Name is required")]
        [StringLength(int.MaxValue, MinimumLength = 1)]
        public string Title { get; set; }

        [Display(Name = "Link:")]
        [Required(ErrorMessage = "Name is required")]
        [StringLength(int.MaxValue, MinimumLength = 1)]
        public string Link { get; set; }

        [Display(Name = "Lookup Name:")]
        public string LookupName { get; set; }

        public Nullable<System.Guid> LookupID { get; set; }

        public byte[] Photo { get; set; }
    }
}
